const express = require('express')
const Mock = require('mockjs')
const router = express.Router()

// GET
router.get('/:stuNo', (req, res) => {
  const {stuNo} = req.params
  res.json({
    code: 200,
    data: Mock.mock({
      stuNo,
      'clazz|1': ['二年级一班', '二年级二班', '三年级一班', '四年级一班'],
      name: '@cname',
    })
  })
})

module.exports = router
